home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / libio / configure.in < prev    next >
Text File  |  1994-10-18  |  1KB  |  49 lines

  1. # This file is a shell script fragment that supplies the information
  2. # necessary for a configure script to process the program in
  3. # this directory.  For more information, look at ../configure.
  4.  
  5. configdirs="tests dbz stdio"
  6. srctrigger=libioP.h
  7. srcname="input/output library"
  8. package_makefile_frag=Make.pack
  9.  
  10. # per-host:
  11.  
  12. # per-target:
  13.  
  14. case "${target}" in
  15.   *-*-hpux*)       my_target=hpux ;;
  16.   *-*-linux*)      my_target=linux ;;
  17.   *-*-sco3.2v4*)   my_target=sco4 ;;
  18.   *-*-isc*)        my_target=isc ;;
  19.   *-*-netware*)    my_target=netware ;;
  20.   *-*-*)           my_target=${target_cpu}
  21. esac
  22.  
  23. if [ -f ${srcdir}/config/${my_target}.mt ] ; then
  24.   target_makefile_frag=config/${my_target}.mt
  25. fi
  26.  
  27. TO_TOPDIR=../
  28. ALL='$(_G_CONFIG_H) libio.a libiostream.a $(OSPRIM_OBJECTS)'
  29. CINCLUDES='-I. -I$(srcdir)'
  30. CXXINCLUDES='-I. -I$(srcdir)'
  31. MOSTLYCLEAN='*.o core iostream.list'
  32. CLEAN='_G_config.h *.a'
  33. INFO_FILES=iostream
  34. (. ${srcdir}/config.shared) >${package_makefile_frag}
  35.  
  36. # post-target:
  37.  
  38. # If cross-compiling, don't build gperf or the utils.  They
  39. # will get built by the target compiler, which is confusing.
  40. # We cannot test the installation.  We install in $(tooldir).
  41. if [ ${host} != ${target} ] ; then
  42.     rm -f Makefile.tem
  43.     sed \
  44.     -e 's|INSTALLDIR.*=.*$|INSTALLDIR = $(tooldir)/lib|' \
  45.     Makefile >Makefile.tem
  46.     mv -f Makefile.tem Makefile
  47. fi
  48.  
  49.